import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import tailwindcss from 'tailwindcss'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: { // 别名的设置
    alias: {
      '@': './src'
    }
  },
  server: { // 热更新
    hmr: true
  },
  css: {
    postcss: {
      plugins: [
        tailwindcss({
          content: ['./src/*.vue', './src/**/*.vue']
        })
      ]
    }
  }
})
